import React, {useState} from 'react'
import Taro, {Component} from '@tarojs/taro'
import { AtNoticebar } from 'taro-ui'
import { View, Text, Image} from '@tarojs/components'
function Announcement () {
  function goToNoticeMsg(){
    Taro.navigateTo({
      url:'/pages/noticemsg/index'
    })
  }
  return (
    <View className='announcement' onClick={() => goToNoticeMsg()}>
      <Text className='an_gg'> 通知 </Text>
      <Image className='an_img' src={require('../../../static/images/tongzhi.png')} />
      <View className='an_info'>
        <AtNoticebar marquee >
          <Text>认识我的朋友，都说我是济南吴彦祖</Text>
        </AtNoticebar>
      </View>
      <Text className='an_gd'>更多</Text>
    </View>
  )
}

export default Announcement
